<?php
session_start();
require_once("../lib/standard.php");

$login = Globals::parametros("login");
$kodikos = sha1(Globals::parametros("kodikos"));

$query = "SELECT `login` FROM `pektis` WHERE `login` = '" .
	$globals->asfales($login) . "' AND `kodikos` = '" .
	$globals->asfales($kodikos) . "' LIMIT 1";
$result = $globals->query($query);
$row = mysqli_fetch_array($result, MYSQLI_NUM);
if ($row) {
	mysqli_free_result($result);
	$_SESSION['login'] = $login;
	die("@ok@");
}

print "Access denied!";

?>

